<script type="text/javascript" >
    function deleteF() {
        var deleteForm = document.getElementById('deleteForm');
        if(confirm('정말 삭제하시겠습니까?')) {
            return deleteForm.submit();        
        } else {
            return false;
        }
    }

    function cancelDelete() {
        var deleteForm = document.getElementById('deleteForm');
        var chkbox = $A(document.getElementsBySelector('input[type=checkbox]'));
        chkbox.each(function(item,index) {
            item.checked = false;
        });
    }
</script>
<table width="100%" cellspacing="0" cellpadding="0" border="0" background="images/sub_bg.gif">
<tbody><tr>
<td><table width="823" cellspacing="0" cellpadding="0" border="0">
<tbody><tr>
<td background="images/sub_bg_title.gif"><img width="301" height="70" src="images/sub_title_my_sponsor.gif"/></td>
</tr>
</tbody></table></td>
</tr>
<tr>
<td valign="top" height="40"><table width="823" cellspacing="0" cellpadding="0" border="0">
<tbody><tr>
<td><img width="1" height="1" src="images/1blank.gif"/></td>
<td width="84" bgcolor="#000000" align="right"><a href="superCourseEval.php"><img width="72" height="24" border="0" src="images/sub_my_sponsor_01.gif"/></a></td>
<td width="26" bgcolor="#000000"><img width="26" height="24" src="images/sub_menu_line.gif"/></td>
<td width="46" bgcolor="#000000"><a href="superAnalysis.php"><img width="51" height="24" border="0" src="images/sub_my_sponsor_03.gif"/></a></td>
<td width="26" bgcolor="#000000"><img width="26" height="24" src="images/sub_menu_line.gif"/></td>
<td width="71" bgcolor="#000000"><a href="superMembers.php"><img width="58" height="24" border="0" src="images/sub_my_sponsor_04.gif"/></a></td>
</tr>
</tbody></table></td>
</tr>
<tr>
<td><table width="823" cellspacing="0" cellpadding="0" border="0">
<tbody><tr>
<td valign="top"><table width="98%" cellspacing="0" cellpadding="3" border="0" class="font">
<tbody><tr>
<td width="30"><img width="1" height="1" src="images/1blank.gif"/></td>
<td valign="top"><table width="100%" cellspacing="0" cellpadding="0" border="0">
<tbody><tr>
<td valign="top" height="30"><img width="168" height="19" src="images/sub_admin_title_03.gif"/></td>
</tr>
<tr>
<td><table width="100%" cellspacing="0" cellpadding="0" border="0">
<tbody><tr>
<td width="50"/>
</tr>
<tr>
<td height="15"/>
<td><form method="post"><table width="100%" cellspacing="0" cellpadding="0" border="0">
<tbody><tr>
<td width="15"/>
<td><input type="hidden" name="mode" value="write" /><table width="770" cellspacing="0" cellpadding="3" bordercolor="#cccccc" border="2" style="border-collapse: collapse;" class="font">
<tbody><tr>
<td><div align="center">이름</div></td>
<td><div align="center">핸드폰</div></td>
<td><div align="center">ID</div></td>
<td><div align="center">Password</div></td>
<td><div align="center">등급</div></td>
</tr>
<tr>
<td><div align="center">
<input type="text" maxlength="8" size="8" value="" id="textfield2" class="font" name="mb_name" />
</div></td>
<td><div align="center">
<input type="text" maxlength="11" size="11" value="" id="textfield19" class="font" name="mb_hp" />
</div></td>
<td><div align="center">
<input type="text" maxlength="20" size="20" value="" id="textfield" class="font" name="mb_id" />
</div></td>
<td><div align="center">
<input type="text" maxlength="20" size="20" value="" id="textfield8" class="font" name="mb_password" />
</div></td>
<td><div align="center">
<select class="font" name="mb_division">
<option value="일반관리자">일반관리자</option>
<option value="최고관리자">최고관리자</option>
</select>
</div></td>
</tr>
</tbody></table></td>
</tr>
<tr>
<td/>
<td height="30"><input type="submit" value="등록" id="button3" class="font" name="button3"/>
<input type="submit" value="취소" id="button" class="font" name="button"/></form></td>
</tr>
<tr>
<td/>
<td height="20"> </td>
</tr>
</tbody></table></td>
</tr>
<tr>
<td/>
<td><form method= "post" id="deleteForm"><input type="hidden" name="mode" value="del" /><table width="770" cellspacing="0" cellpadding="3" bordercolor="#cccccc" border="2" style="border-collapse: collapse;" class="font">
<tbody><tr>
<td><div align="center">순번</div></td>
<td><div align="center">이름</div></td>
<td><div align="center">핸드폰</div></td>
<td><div align="center">ID</div></td>
<td><div align="center">등급</div></td>
<td><div align="center">삭제</div></td>
</tr>
<!-- {@_data} -->
<tr>
<td><div align="center">{.count}</div></td>
<td><div align="center">{.mb_name}</div></td>
<td><div align="center">{.mb_hp}</div></td>
<td><div align="center">{.mb_id}</div></td>
<td><div align="center">{.mb_division}</div></td>
<td><label>
</label><div align="center">
<input type="checkbox" id="" name="mb_no[]" value="{.mb_no}"/>
</div>
</td>
</tr>
<!-- {:} -->
<tr>
<td colspan = "6"><div align="center">검색된 데이터가 없습니다</div></td>
</tr>
<!-- {/} -->
</tbody></table></form></td>
</tr>
<tr>
<td/>
<td height="30"><input type="button" value="삭제" id="button2" class="font" name="button2" onclick="deleteF();"/>
<input type="button" value="취소" id="button4" class="font" name="button2" onclick="cancelDelete()" /></td>
</tr>
</tbody></table></form></td>
</tr>
</tbody></table></td>
</tr>
</tbody></table></td>
</tr>
</tbody></table></td>
</tr>
</tbody></table>
